﻿<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            @if (Request.IsAuthenticated)
            {
                <div class="navbar-text pull-right">
                    Logged in as <a href="#" class="navbar-link">@User.Identity.Name</a>
                    @Html.ActionLink("Logout", "Logout", "OpenId", null, new { @class = "btn-link" })
                </div>
            }
            else
            {
                @*<form class="navbar-form pull-right">
                    <input class="span2" type="text" placeholder="Email">
                    <input class="span2" type="password" placeholder="Password">
                    <button type="submit" class="btn">Sign in</button>
                </form>*@
                <div class="navbar-form pull-right"> 
                    @Html.ActionLink("Sign in", "Authenticate", "OpenId", null, new { @class = "btn btn-link" })
                </div>
            }
            
            @Html.ActionLink("Investment-Research", "Index", "Home", null, new { @class="brand siteLogo" })
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <li>@Html.ActionLink("Portfolios", "Index", "Portfolio")</li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Analysis <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li>@Html.ActionLink("Stocks", "Index", "Stock")</li>
                            <li><a href="#">Markets</a></li>
                            <li><a href="#">Industries</a></li>
                            <li class="divider"></li>
                            <li class="nav-header">Stats</li>
                            <li><a href="#">@Request.RawUrl</a></li>

                        </ul>
                    </li>
                    <li>@Html.ActionLink("Test", "Index", "Download")</li>
                </ul>
            </div><!-- nav-collapse -->
        </div><!-- container -->
    </div><!-- nav-inner -->
</div><!-- navbar navbar-fixed-top -->
@*
<form class="navbar-form pull-right">
    <input class="span2" type="text" placeholder="username">
    <input class="span2" type="password" placeholder="password">
    <button type="submit" class="btn">Sign in</button>
</form>*@